package cn.buk.tms.dto;

public class BaseFlightPriceDto {

    /**
     * 成人价格
     */
    protected double price;

    protected double parvalue;

    protected double tax;

    protected double insurance;

    protected double serviceCharge;

    protected double commRate;

    protected double commission;

    protected double discountRate;

    protected double discount;

    protected double amount;

    protected double cost;

    /**
     * 儿童价格
     */
    protected double chdPrice;

    protected double chdParvalue;

    protected double chdTax;

    protected double chdInsurance;

    protected double chdServiceCharge;

    protected double chdCommission;

    protected double chdDiscount;

    private double chdAmount;

    protected double chdCost;

    protected double profit;  //表示总利润

    public void calcCost() {
        this.cost = this.parvalue + this.tax + this.insurance - this.commission;
    }

    public void calcChildCost() { this.chdCost = this.chdParvalue + this.chdTax + this.chdInsurance - this.chdCommission; }

    public double getChdPrice() {
        return chdPrice;
    }

    public void setChdPrice(double chdPrice) {
        this.chdPrice = chdPrice;
    }

    public double getChdParvalue() {
        return chdParvalue;
    }

    public void setChdParvalue(double chdParvalue) {
        this.chdParvalue = chdParvalue;
    }

    public double getChdTax() {
        return chdTax;
    }

    public void setChdTax(double chdTax) {
        this.chdTax = chdTax;
    }

    public double getChdInsurance() {
        return chdInsurance;
    }

    public void setChdInsurance(double chdInsurance) {
        this.chdInsurance = chdInsurance;
    }

    public double getChdCommission() {
        return chdCommission;
    }

    public void setChdCommission(double chdCommission) {
        this.chdCommission = chdCommission;
    }

    public double getChdCost() {
        return chdCost;
    }

    public void setChdCost(double chdCost) {
        this.chdCost = chdCost;
    }

    public double getChdServiceCharge() {
        return chdServiceCharge;
    }

    public void setChdServiceCharge(double chdServiceCharge) {
        this.chdServiceCharge = chdServiceCharge;
    }

    public double getChdDiscount() {
        return chdDiscount;
    }

    public void setChdDiscount(double chdDiscount) {
        this.chdDiscount = chdDiscount;
    }

    public double getChdAmount() {
        return chdAmount;
    }

    public void setChdAmount(double chdAmount) {
        this.chdAmount = chdAmount;
    }
}
